package com.hz.foodstalls.shiro.freemarker;

/**
 * Created by foodstalls on 2016/2/18.
 */
public class HasRoleTag extends RoleTag  {
    @Override
    protected boolean showTagBody(String roleNames) {
        return getSubject() != null && getSubject().hasRole(roleNames);
    }
}
